package com.example.arthasdemo.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: tenghuawei-demo
 * @author: tenghw
 * @create: 2024-03-07 00:08
 * @Version 1.0
 * @description: 测试线上修复热部署
 **/
@RestController
@RequestMapping("/hot")
public class HotController {
    @RequestMapping("/test")
    @ResponseBody
    public String test(Integer i){
        boolean flag=false;
        if(i==1){
            flag = true;
        }
        if (flag) {
            System.out.println("开始处理逻辑");
            //throw new RuntimeException("出异常了");
        }
        System.out.println("结束流程");
        return "hot test出参123";
    }
}


